package ce51.dunghn.displaytest;

import java.util.ArrayList;

import vg.com.chatonline.activity.R;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;

public class MainActivity extends Activity {
	ListView lv;
	DisplayAdapter adt;
	ArrayList<String> arr = new ArrayList<String>();

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_wall);
		arr.add("http://vatgia.com");
		arr.add("http://data.dzanchoi.vn/images/e0e023ce9b/165d4_main200.jpg");
		arr.add("Hello");
		arr.add("http://data.dzanchoi.vn/images/e0e023ce9b_1/165d4_main200.jpg");
		arr.add("aaaaa.jpg");
		arr.add("http://data.dzanchoi.vn/images/57e80651a8/2f6d5_main200.jpg");
		arr.add("Qwerty, yuiop, asdfg, hjkl. zxcvb, nm,..!!!");
		arr.add("http://data.dzanchoi.vn/images/564e13ab7c/506e9_main200.jpg");
		arr.add("http://data.dzanchoi.vn/images/f0b95e23ff/4c5d3_main200.jpg");
		arr.add("Qwerty, yuiop, asdfg, hjkl. zxcvb, nm,..!!!");
		arr.add("http://data.dzanchoi.vn/images/297d0a02ce_1/4b263_main200.jpg");
		arr.add("Qwerty, yuiop, asdfg, hjkl. zxcvb, nm,..!!!");
		arr.add("http://data.dzanchoi.vn/images/4d97578608/524ba_main200.jpg");
		arr.add("Qwerty, yuiop, asdfg, hjkl. zxcvb, nm,..!!!");
		arr.add("http://data.dzanchoi.vn/images/4d97578608_1/524ba_main200.jpg");
		arr.add("Qwerty, yuiop, asdfg, hjkl. zxcvb, nm,..!!!");
		arr.add("http://data.dzanchoi.vn/images/3fe22a640e_1/7a951_main200.jpg");

		adt = new DisplayAdapter(getBaseContext(), R.layout.custom_listview_wall,
				arr);
		lv = (ListView) findViewById(R.id.lvView);
		lv.setAdapter(adt);
	}

}
